package com.ican.oc.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="category_description")
public class OcCategoryDescription implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @EmbeddedId
    private OcCateDescPK pk;
    @Column(name="name")
    private String name;
    @Column(name="description")
    private String description;
    @Column(name="meta_description")
    private String metaDescription;
    @Column(name="meta_keyword")
    private String metaKeyword;
    
    public OcCategoryDescription(){
        
    }
    
    public OcCategoryDescription(Integer categoryId, Integer languageId, String name, String description){
        this.pk = new OcCateDescPK();
        this.pk.setCategoryId(categoryId);
        this.pk.setLanguageId(languageId);
        this.name = name;
        this.description = description;
        this.metaDescription = "";
        this.metaKeyword = "";
    }

    public OcCateDescPK getPk() {
        return pk;
    }
    public void setPk(OcCateDescPK pk) {
        this.pk = pk;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getMetaDescription() {
        return metaDescription;
    }
    public void setMetaDescription(String metaDescription) {
        this.metaDescription = metaDescription;
    }
    public String getMetaKeyword() {
        return metaKeyword;
    }
    public void setMetaKeyword(String metaKeyword) {
        this.metaKeyword = metaKeyword;
    }
}
